package pumpkin.word;

public class SymbolToken implements Token {
	private SymbolTxt symbolTxt;
	public SymbolToken(String txt) {
		if("(".equals(txt)) {
			symbolTxt=SymbolTxt.LSquar;
		}else if(")".equals(txt)) {
			symbolTxt=SymbolTxt.RSquar;
		}else if("+".equals(txt)) {
			symbolTxt=SymbolTxt.Plus;
		}else if("*".equals(txt)) {
			symbolTxt=SymbolTxt.Multi;
		}else if("-".equals(txt)) {
			symbolTxt=SymbolTxt.Minus;
		}else if("/".equals(txt)) {
			symbolTxt=SymbolTxt.Div;
		}
	}
	@Override
	public TokenType getType() {
		return TokenType.SYMBOL;
	}
	public  String getText() {
		return symbolTxt.getSymbol();
	}
}
